const {Pagination} = require('jj.js');
const page_tpl = require('./_page_tpl.js');
class Cate extends Pagination
{
    async init(opts) {
        let theme = await  this.$model.site.getConfig('theme')
        let pc = await page_tpl.$get_page_tpl(theme)
        super.init({
            key_origin: 'params',
            url_index: ':cate',
            url_page: ':cate_page',
            ...opts,
            ...pc
        });
        return this;
    }
}

module.exports = Cate;